package com.wave.system.domain.bo;

import com.wave.common.core.domain.BaseEntity;
import com.wave.common.core.validate.AddGroup;
import com.wave.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 生产记录业务对象 sys_produce_record
 *
 * @author wave
 * @date 2024-10-17
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysProduceRecordBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 产品SN
     */
    @NotBlank(message = "工装架编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shelfNumber;

    /**
     * 产品型号
     */
    @NotBlank(message = "产品型号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productNumber;

    /**
     * 班次(白班/夜班)
     */
    @NotBlank(message = "班次(白班/夜班)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String classes;


}
